home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / 8bit / cislib_a / chars.doc < prev    next >
Text File  |  1995-04-22  |  2KB  |  51 lines

  1. WRITING SPECIAL CHARACTERS
  2.  
  3. The Kyan Text Editor (ED) does not allow the use of the 
  4. keyboard graphics characters because it interprets control 
  5. keys as commands.  For example, CONTROL-<P> pastes the 
  6. contents of the buffer instead of printing the club-shaped 
  7. graphics character.
  8.  
  9. If you need to use these keyboard graphics characters, you 
  10. can get around this problem fairly easily by doing something 
  11. like:
  12.  
  13.       Write(Chr(16)); (* print club graphic char to screen *)
  14.  
  15. And if you want to print an arrow, it requires an escape 
  16. character first, which adds even more typing:
  17.  
  18.       Write(Chr(27),Chr(31)); (* print ESCape and right arrow 
  19. *)
  20.  
  21. Again, my laziness prompted me to create a file, Chars.i, 
  22. which contains a number of functions that return special 
  23. characters.  The function name is then used in a Write or 
  24. WriteLn statement instead of the Chr function.  The previous 
  25. statement can now be rewritten, using the Chars.i functions, 
  26. to be:
  27.  
  28.       Write(Esc,Rarrow);
  29.  
  30. The CHARS.PAS file, which you should rename to CHARS.I after 
  31. downloading, does not give all of the special character 
  32. functions, but, of course, you may add functions to the file 
  33. if you have a list of the ATASCII (Atari version of the 
  34. American Standard Codes for Information Interchange) 
  35. character codes.  The file's comments describe the purpose of 
  36. each function.
  37.  
  38. Important Hint:  If you are going to add a lot of functions 
  39. to the file, use the CONTROL-<M> and CONTROL-<P> commands to 
  40. move and paste the following:
  41.  
  42.     FUNCTION : Char;
  43.     BEGIN
  44.         := Chr()
  45.     END;(* *)
  46.  
  47. Then, after you have pasted the buffer into the text several 
  48. times, you may go in and insert the function name, value, and 
  49. comment where appropriate.
  50.  
  51.